﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    public class ServiceOrderDetailModel:NormalModel
    {
        private long _serviceid;
        private long _deliverydetailid;
        private long _productionid;
        private int _status;
        public virtual long ServiceId
        {
            get { return _serviceid; }
            set
            {
                if (_serviceid == value)
                    return;
                _serviceid = value;
                if (!PropertyUpdated.Contains("ServiceId"))
                    PropertyUpdated.Add("ServiceId");
            }
        }
        public virtual long DeliveryDetailId
        {
            get { return _deliverydetailid; }
            set
            {
                if (_deliverydetailid == value)
                    return;
                _deliverydetailid = value;
                if (!PropertyUpdated.Contains("DeliveryDetailId"))
                    PropertyUpdated.Add("DeliveryDetailId");
            }
        }
        public virtual long ProductionId
        {
            get { return _productionid; }
            set
            {
                if (_productionid == value)
                    return;
                _productionid = value;
                if (!PropertyUpdated.Contains("ProductionId"))
                    PropertyUpdated.Add("ProductionId");
            }
        }
        public virtual int Status
        {
            get { return _status; }
            set
            {
                if (_status == value)
                    return;
                _status = value;
                if (!PropertyUpdated.Contains("Status"))
                    PropertyUpdated.Add("Status");
            }
        }
    }
}
